﻿using System;
using System.Data;
using System.Data.SqlClient;
using DBModule;
using DataLogical.TableClass;

namespace DataLogical
{
    public class ClassDefine : tblConfigClassDefine
    {
        public static string getClassName(string _typeName)
        {
            string strSql = string.Format("SELECT ClassName FROM tblConfigClassDefine WHERE TypeName = '{0}'",_typeName);
            SqlModule db = CommonVar.s_SqlModule;
            
            Object result = db.QueryScalar(strSql);
            if (result != null)
                return result.ToString();
            return null;
        }
    }
}
